package com.tllq.zhongkang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tllq.zhongkang.entity.Goods;
import com.tllq.zhongkang.mapper.GoodsMapper;
import com.tllq.zhongkang.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Autowired
    GoodsMapper goodsMapper;
    @Override
    public List<Goods> findAll() {
        return goodsMapper.findAll();
    }
}
